package com.guchenghao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.guchenghao.dto.UserDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @User 20675
 * @Author gch
 * @Date 2025/3/31 14:26
 * @Description <br />
 * <p>
 * <br />
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("blog_comments")
public class Comment {
    @TableId
    private Integer commentId;
    private Integer articleId;
    private Integer userId;
    private Integer hidden; // 0为可见，1为不可见
    private String commentContent;
    private Date commentDate;
    @TableField(exist = false)
    private UserDto userDto;
}
